package cn.edu.sdjzu.xg.eagle.dao;

import cn.edu.sdjzu.xg.eagle.entity.Organization;

import java.sql.Connection;
import java.util.Collection;

public interface OrganizationDaoInterface {
    void save(Connection conn, Organization organization);
    Organization findById(Connection conn, Long id);
    void update(Connection conn, Organization organization);
    void delete(Connection conn, Long id);
    Collection<Organization> findAll(Connection conn);
    Collection<Organization> findWithAllChildren(Connection conn, Long parentId);
}